package com.example.warehouse.bus.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 欧胤
 * @version 1.0
 * @description: 供应商实体类
 * @date 2023/6/30 17:16
 */
@Data
@TableName("bus_provider")
public class BusProvider implements Serializable {
    /**
     * 数据ID
     */
    @ExcelProperty(value = "数据ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 供应商名字
     */
    @ExcelProperty(value = "供应商名字",index = 1)
    private String providerName;

    /**
     * 邮编
     */
    @ExcelProperty(value = "邮编",index = 2)
    private String zip;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址",index = 3)
    private String address;

    /**
     * 固定电话
     */
    @ExcelProperty(value = "固定电话",index = 4)
    private String telephone;

    /**
     * 联系人名字
     */
    @ExcelProperty(value = "联系人名字",index = 5)
    private String connectionPerson;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号",index = 6)
    private String phone;

    /**
     * 开户行
     */
    @ExcelProperty(value = "开户行",index = 7)
    private String bank;

    /**
     * 银行卡号
     */
    @ExcelProperty(value = "银行卡号",index = 8)
    private String account;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱",index = 9)
    private String email;

    /**
     * 传真号
     */
    @ExcelProperty(value = "传真号",index = 10)
    private String fax;

    /**
     * 是否启用，1启用，0不启用
     */
    @ExcelProperty(value = "是否启用",index = 11)
    private Integer enable;

    /**
     * 排序序号
     */
    @ExcelProperty(value = "排序序号",index = 12)
    private Integer sort;

    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 13)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 14)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
